<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>指定表格的frame</title>
</head>

<body>
    <table id="myTable">
        <tr>
            <td>100</td>
            <td>200</td>
        </tr>
        <tr>
            <td>300</td>
            <td>400</td>
        </tr>
    </table>
    <br>
    <input type="button" onclick="aboveFrames()" value="显示上frames">
    <input type="button" onclick="belowFrames()" value="显示下frames">
    <script>
        function aboveFrames() {
            document.getElementById('myTable').frame = "above";
        }
        function belowFrames() {
            document.getElementById('myTable').frame = "below";
        }
    </script>
</body>

</html>